# find pLambda_CF_v7_seed/ -name "*root" > pLambda_CF_v7_seed.list
# split -l 500 pLambda_CF_v7_seed.list -d pLambda_CF_v7_seed.list_

for((seed_num=0;seed_num<=31;seed_num++));
do
  seed=`printf "%02d" $seed_num`
  cmdstr="hadd pLambda_CF_v7_seed$seed.root $(cat pLambda_CF_v7_seed.list_$seed) &"
  eval $cmdstr
done


wait

hadd pLambda_CF_v7_scale5_All.root $(find ./ -name "pLambda_CF_v7_seed*.root" )

